import Vue from 'vue'
import VueRouter from 'vue-router'
import LoginsRouter from '@/views/logins/route'
import MainRouter from '@/views/main/route'
import DetailRouter from '@/views/details/route'

Vue.use(VueRouter)

const routes = [
  {
    path: "/",
    redirect: { name: "guide" }
  },
  {
    path: 'guide',
    name: 'guide',
    component: () => import('@/views/guide/Guide.vue')
  },
  ...LoginsRouter,
  ...MainRouter,
  ...DetailRouter
]

const router = new VueRouter({
  mode: 'hash',
  routes
})

export default router
